// part 'image_data.g.dart';
//
// @JsonSerializable()
class ImageData {
  final List<String> urls;
  final String bookId;
  final String chapterId; // 章节id
  late int index; // 当前图片的下标
  late String filePath; // 当前图片下载全路径

  ImageData(this.urls, this.bookId, this.chapterId, this.index);

  factory ImageData.fromJson(Map<String, dynamic> json) {
    return ImageData(
      json['urls'] as List<String>,
      json['bookId'] as String,
      json['chapterId'] as String,
      json['index'] as int,
    );
  }
}
